package com.example.bili.service.impl;

import com.example.bili.dao.SouDao;
import com.example.bili.entity.Lsb;
import com.example.bili.entity.Trend;
import com.example.bili.service.SouService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SouServiceImpl implements SouService {
    @Resource
    private SouDao dao;
    @Override
    public List<Trend> getSY(String wb, int typeId) {
        return dao.getSY(wb,typeId);
    }

    @Override
    public List<Trend> getSY2(String wb) {
        return dao.getSY2(wb);
    }

    @Override
    public List<Trend> getSY3(String wb) {
        return dao.getSY3(wb);
    }

    @Override
    public List<Trend> getSY4(String wb) {
        return dao.getSY4(wb);
    }

    @Override
    public List<Trend> getGZ() {
        return dao.getGZ();
    }

    @Override
    public boolean addLS(String lsname) {
        return dao.addLS(lsname)>0;
    }

    @Override
    public List<Lsb> getLSB() {
        return dao.getLSB();
    }

    @Override
    public int delLS() {
        return dao.delLS();
    }
}
